package util;

public class SSIDException extends Exception {

	private static final long serialVersionUID = 1L;

	public SSIDException(String s) {
		super(s);
	}
	
//	public String getMessage(){
//		return this.;
//	}

	public String getSASearchUsage() {
		StringBuffer sb = new StringBuffer();
		sb.append("Usage: java -jar ssid.jar [parameters]...\n\n");
		sb.append("Parameters:\n");
		sb.append("\tTrace file, Topology File, ");
		sb.append("Simmulated Annealing Parameters file,\n");
		sb.append("\tSensor Type, Number of sensors, Number of runs.\n\n");
		sb.append("Example:\n");
		sb.append("\tjava -jar ssid.jar trace.tr  exp2.tcl  SimAnn.params  ");
		sb.append("PortSensor  3  1\n\n");
		return sb.toString();
	}

	public String getHCSearchUsage() {
		StringBuffer sb = new StringBuffer();
		sb.append("Usage: java -jar ssid.jar [parameters]...\n\n");
		sb.append("Parameters:\n");
		sb.append("\tTrace file, Topology File, ");
		sb.append("Hill Climbing Parameters file,\n");
		sb.append("\tSensor Type, Number of sensors, Number of runs.\n\n");
		sb.append("Example:\n");
		sb
				.append("\tjava -jar ssid.jar trace.tr  exp2.tcl  HillClimbing.params  ");
		sb.append("PortSensor  3  1\n\n");
		return sb.toString();
	}

	public String getExSearchUsage() {
		StringBuffer sb = new StringBuffer();
		sb.append("Usage: java -jar ssid.jar [parameters]...\n\n");
		sb.append("Parameters:\n");
		sb.append("\tTrace file, Topology File, Sensor Settings File\n\n");
		sb.append("Example:\n");
		sb.append("\tjava -jar ssid.jar exp2.traces  exp2.tcl  sensorettings.tcl\n\n");
		return sb.toString();
	}

	public String getGAsUsage() {
		StringBuffer sb = new StringBuffer();
		sb.append("Usage: java -jar ssid.jar [parameters]...\n\n");
		sb.append("Parameters:\n");
		sb.append("\tGenetic Algorithm parameters file,\n");
		sb.append("\tTrace file, Topology File, and Sensor Type\n");
		sb.append("Example:\n");
		sb
				.append("\tjava -jar ssid.jar -file GAs.params -p sensorType=PortSensor");
		sb.append("-p traceFile=trace.tr -p topologyFile=exp2.tcl\n\n");
		return sb.toString();
	}

	public String getDynamicPlacementUsage() {
		StringBuffer sb = new StringBuffer();
		sb.append("Usage: java -jar ssid.jar [parameters]...\n\n");
		sb.append("Parameters:\n");
		sb.append("\tTrace file, Topology File, ");
		sb.append("Simmulated Annealing Parameters file,\n");
		sb.append("\tSensor Type, Number of sensors, Number of runs, ");
		sb.append("Time Interval\n\n");
		sb.append("Example:\n");
		sb.append("\tjava -jar ssid.jar trace.tr  exp2.tcl  SimAnn.params  ");
		sb.append("PortSensor  3  1  0.2\n\n");
		return sb.toString();
	}
}
